import request from '@/utils/request'

//库存统计  在售商品
export function zaishou(query) {
    return request({
        url: '/merchant/new/kucun/zaishou',
        method: 'get',
        params: query
    })
}

//库存统计 滞销
export function zhixiao(query) {
    return request({
        url: '/merchant/new/kucun/zhixiao',
        method: 'get',
        params: query
    })
}

//库存统计 问题商品
export function wenti(query) {
    return request({
        url: '/merchant/new/kucun/wenti',
        method: 'get',
        params: query
    })
}

//库存统计 损耗商品
export function sunhao(query) {
    return request({
        url: '/merchant/new/kucun/sunhao',
        method: 'get',
        params: query
    })
}

/**
 * 卡位管理
 * 
 */
export function huishou(query) {
    return request({
        url: '/merchant/new/gaikuang/huishou',
        method: 'get',
        params: query
    })
}
export function xiaoshou(query) {
    return request({
        url: '/merchant/new/gaikuang/xiaoshou',
        method: 'get',
        params: query
    })
}
export function shouhou(query) {
    return request({
        url: '/merchant/new/gaikuang/shouhou',
        method: 'get',
        params: query
    })
}
//营销数据
export function qushi(query) {
    return request({
        url: '/merchant/new/yingxiao/qushi',
        method: 'get',
        params: query
    })
}

//经营明细
export function mingxi(query) {
    return request({
        url: '/merchant/new/jingying/mingxi',
        method: 'get',
        params: query
    })
}
//利润分布

export function fenbu(query) {
    return request({
        url: '/merchant/new/lirun/fenbu',
        method: 'get',
        params: query
    })
}

//财务分析
export function fenxi(query) {
    return request({
        url: '/merchant/new/caiwu/fenxi',
        method: 'get',
        params: query
    })
}

export function shouruzhichu(query) {
    return request({
        url: '/merchant/new/caiwu/shouruzhichu',
        method: 'get',
        params: query
    })
}

//
export function zhuangtai(query) {
    return request({
        url: '/merchant/new/kucun/zhuangtai',
        method: 'get',
        params: query
    })
}

// 商品转化明细 列表1基于回收
export function listByBackClueOrder(query) {
    return request({
        url: '/merchant/lead/backClueOrder/list',
        method: 'get',
        params: query
    })
}
// 导出 列表1基于回收
export function listByBackClueOrderExport(query) {
    return request({
        url: '/merchant/lead/backClueOrder/export',
        method: 'get',
        responseType: 'blob',
        params: query
    })
}
// 商品转化明细 列表2基于商品
export function listByGoodsInfo(query) {
    return request({
        url: '/merchant/lead/goodsInfo/list',
        method: 'get',
        params: query
    })
}
// 导出 列表2基于商品
export function listByByGoodsInfoExport(query) {
    return request({
        url: '/merchant/lead/goodsInfo/export',
        method: 'get',
        responseType: 'blob',
        params: query
    })
}
// 商品转化明细 列表3基于销售
export function listBySaleOrder(query) {
    return request({
        url: '/merchant/lead/saleOrder/list',
        method: 'get',
        params: query
    })
}
// 导出 列表3基于销售
export function listBySaleOrderExport(query) {
    return request({
        url: '/merchant/lead/saleOrder/export',
        method: 'get',
        responseType: 'blob',
        params: query
    })
}